package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.Appointment;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface AppointmentDao extends CrudRepository<Appointment, Long> {
    Appointment findOneBySickPhoneAndStatus(String phone, int status);

    Appointment findOneByBarcode(String barcode);

    List<Appointment> findAllByCheckerId(long checkerId);
}
